package com.health.teahouse.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.health.common.annotation.Excel;
import com.health.common.core.domain.BaseEntity;

/**
 * 水果信息管理对象 fruits
 * 
 * @author yangzw
 * @date 2024-01-10
 */
public class Fruits extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long fruitId;

    /** 名字 */
    @Excel(name = "名字")
    private String name;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 图片 */
    @Excel(name = "图片")
    private String imageUrl;

    public void setFruitId(Long fruitId) 
    {
        this.fruitId = fruitId;
    }

    public Long getFruitId() 
    {
        return fruitId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fruitId", getFruitId())
            .append("name", getName())
            .append("stock", getStock())
            .append("price", getPrice())
            .append("imageUrl", getImageUrl())
            .toString();
    }
}
